package com.zzyl.serve.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 护理项目查询DTO
 * 用于接收前端分页查询请求参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("nursing_task")
public class NursingTaskDto {


    private String elderName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;


    @TableField("nursing_id")
    private Long nurseId;


    private Integer pageNum = 1;


    private Integer pageSize = 10;


    private Long projectId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;


    private Integer status;




    private String reason;
    private Long taskId;
}